#include "linebuf.h"

#define PROMPT_MAX  64

#define VTY_OPT_CBREAK    1
#define VTY_OPT_ECHO	    (1 << 1)
#define VTY_OPT_PROMPT   (1 << 2)
#define VTY_OPT_CONSOLE  (1 << 3)

void vty_init(long options);
void vty_exit(void);
void set_progname(const char *n);
	
void show_vty_prompt(void);
void set_vty_options(long options);
void unset_vty_options(long options);

int vty_read(const char *buf, int buf_size);
